package main.java.com.example.test.service;

import com.example.test.Mapper.ticketMapper;
import com.example.test.pojo.ticket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TicketServiceImpl implements TicketService{

    @Autowired
    private ticketMapper ticketMapper;

    @Override
    public List<ticket> ticketInfo() {
        return ticketMapper.allTickets();
    }

    @Override
    public List<ticket> searchTickets(String start, String end, String date) {
        return ticketMapper.searchTickets(start, end, date);
    }

    @Override
    public List<ticket> searchTicketsPage(String start, String end, String date, String page) {
        return ticketMapper.searchTicketsPage(start, end, date, page);
    }


}
